﻿using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;
using Wpf.Ui.Common;
using Wpf.Ui.Controls;
using Wpf.Ui.Controls.Interfaces;

namespace FF14TreasureDiggingTool.ViewModels;

public partial class CustomRuleWindowViewModel : ObservableObject
{
    private bool _isInitialized;

    [ObservableProperty]
    private ObservableCollection<INavigationControl> _navigationItems = new();

    public CustomRuleWindowViewModel()
    {
        InitializeViewModel();
    }

    private void InitializeViewModel()
    {
        NavigationItems = new ObservableCollection<INavigationControl>
        {
            new NavigationItem()
            {
                Content = "自定义规则维护",
                PageTag = "FloorInfo",
                Icon = SymbolRegular.InkStrokeArrowDown24,
                PageType = typeof(Views.Pages.FloorInfoPage)
            },
            new NavigationItem()
            {
                Content = "事件维护",
                PageTag = "Event",
                Icon = SymbolRegular.Question24,
                PageType = typeof(Views.Pages.EventPage)
            }
        };

        _isInitialized = true;
    }
}